<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>寇新峰的demo6-1</title>
</head>
<style>
    * {
        border: 0px;
        margin: 0px;
        padding: 0px;
    }
    /* 第一题 */
    #a1-1 {
        width: 100px;
        height: 100px;
        margin:auto;
        background: url('./location_bg.jpg')  -110px -150px;
        margin: auto;
    }


    /* 第二题 */
    #a2 {
        width: 200px;
        height: 200px;
        border: 10px #000 solid;
        background-color: gold;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .a2-a2 {
        padding: 20px 25px 0px 20px;
    }
    /* 第三题 */
    #a3 {
        width: 400px;
        height: 54px;
        margin: 0 auto;
        border-bottom: 3px solid #666;
        border-top: 1px solid #f00;
        box-sizing: border-box;
    }
    .a3-a3 {
        font: 20px 雅黑;
        color: #333;
        padding: 12px;
    }
     /* 第四题 */
     .d1 {
        width: 200px;
        height: 500px;
        box-sizing: border-box;
        margin: auto;
    }
    .d1-1 {
        width: 200px;
        height: 45px;
        font-size: 18px;
        font-weight: 800;
        background-color: #0f7cbf;
        color: white;
        /* 行距 */
        line-height: 35px;
        /* 缩进 */
        text-indent: 25px;
        box-sizing: border-box;
    }
    .d1-2 {
        width: 200px;
        height: 113.75px;
        box-sizing: border-box;
    }
    .d1-3 {
        width: 200px;
        height: 35px;
        background-color: #e4f1fa;
        line-height: 30px;
        text-indent: 35px;
        box-sizing: border-box;
    }
    .d1-3 a {
        color: #0f7cbf;
    }
    .d1-5 a {
        font-size: 12px;
        line-height: 20px;
        text-indent: 20px;
        display: block;
        float: left;
        word-wrap:break-word;       
        color: #666666;
    }
    a {
        text-decoration: none;
    }
    a:hover {
        /* 鼠标悬停显示下划线 */
        text-decoration:underline;
        color: #f60;
    }
</style>
<body>
     <!-- 第一题 -->
     <div id="a1-1">

    </div>
    <br>
    <br>
    <!-- 第二题 -->
    <div id="a2">
        <div class="a2-a2">
            盒子里面的文字内容，距离边框有一定距离
        </div>
    </div>
    <br>
    <br>
    <!-- 第三题 -->
    <div id="a3">
        <div class="a3-a3">
            新闻列表
        </div>
    </div>
    <br>
    <br>
     <!-- 第四题 -->
     <div class="d1">
        <div class="d1-1">
            家用电气
        </div>
        <div class="d1-2">
            <div class="d1-3">
                <a href="#">大家电</a>
            </div>
            <div class="d1-5">
                <a href="#">电视</a>
                <a href="#">电</a>
                <a href="#">电视2</a>
                <a href="#">电视3</a>
                <a href="#">电2</a>
                <a href="#">电5</a>
                <a href="#">电666</a>
            </div>
        </div>
        <div class="d1-2">
            <div class="d1-3">
                <a href="#">生活电器</a>
            </div>
            <div class="d1-5">
                <a>电风扇</a>
                <a>电风扇1</a>
                <a>电风扇66</a>
                <a>电风</a>
                <a>电风123</a>
            </div>
        </div>
        <div class="d1-2">
            <div class="d1-3">
                <a href="#">厨房电气</a>
            </div>
            <div class="d1-5">
                <a>榨汁1</a>
                <a>榨汁</a>
                <a>榨汁机66</a>
                <a>榨123</a>
                <a>榨汁机666</a>
            </div>
        </div>
        <div class="d1-2">
            <div class="d1-3">
                <a href="#">五金家电</a>
            </div>
            <div class="d1-5">
                <a>电动1</a>
                <a>电动666</a>
                <a>电动工具123</a>
                <a>电1</a>
                <a>电</a>
            </div>
        </div>
    </div>
</body>
</html>